"""
#!/usr/bin/python3
# coding:utf-8            
#
# Copyright (C) 2024 - 2024 Jasonakeke， Inc. All Rights Reserved 
# @Desc	   ：
# @Time    : 2024/8/4 17:01
# @Author  : Code_By_Jasonakeke
# @Email   : 2284037977@qq.com
# @File    : 02应用程序参数.py
# @IDE     : PyCharm
"""
from flask import Flask


class DefaultConfig(object):
	""" 默认 Web 项目的配置 """
	USER = 'keke'
	PASSWORD = '123456'


app = Flask(__name__)
app.config.from_object(DefaultConfig)


@app.route('/')
def index():
	print(app.config['USER'])
	print(app.config['PASSWORD'])
	return 'hello  world'


if __name__ == '__main__':
	app.run(host = '0.0.0.0', port = 5000, debug = True)
